<%-- 
    Document   : newStudent
    Created on : Jun 4, 2013, 1:19:45 PM
    Author     : Anna SAELEE
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link type="text/css" rel="stylesheet" href="style.css"/>
        <link type="text/css" rel="stylesheet" href="calendar.css"/>
        <script type="text/javascript" src="mootools.js"></script>
        <script type="text/javascript" src="calendar.js"></script>
        <script type="text/javascript">
            window.addEvent('domready', function() {
                myCal = new Calendar({date: 'Y-m-d'});
            });
        </script>
        <title>Créer Nouveau compte d'étudiant</title>
    </head>

    <body>
        <div class="wrapper">
            <div class="header"></div>
            <div class="navigator"> <a href="#">MENU</a> > <a href="#">SUBMENU</a> 30*1000 </div>
            <div class="workspace">
                <%@include file="connect.jsp" %>
                <div class="workspace2">
                    <h3>Créer nouveau compte d'étudiant</h3><br/>
                    <%
                        if (session.getAttribute("username") == null || !session.getAttribute("username").equals("admin")) {%>
                    Connectez-vous comme l'administrator, s'il vous plaît
                    <% } else if (session.getAttribute("username").equals("admin")) {%>
                    <form method="post" action="Enregistrer" name="newStudent">
                        <table border="0" align="center">
                            <tr><td colspan="2"><input type="hidden" name="typeMss" value="newAccount"/></td></tr>
                            <tr><td><b>Nom d'utilisateur</b></td><td><input type="text" name="usr"/></td></tr>
                            <tr><td><b>Mot de passe</b></td><td><input type="password" name="psswd"/></td></tr>
                            <tr><td><b>Nom</b></td><td><input type="text" name="lastname"/></td></tr>
                            <tr><td><b>Prénom</b></td><td><input type="text" name="firstname"/></td></tr>
                            <tr><td><b>Date de naissance</b></td><td><input type="text" name="date" id="date"/></td></tr>
                            <tr><td><b>Courriel</b></td><td><input type="text" name="courriel"/></td></tr>
                            <tr><td><b>Téléphone</b></td><td><input type="tel" name="tel" 
                                                                    onkeypress="if (isNaN(this.value + String.fromCharCode(event.keyCode)))
                    return false;"/></td></tr>
                            <tr><td colspan="2" style="text-align: center">
                                    <input type="submit" value="Créer un nouveau compte"/>
                                </td></tr>
                        </table>
                    </form>
                    <% }%>
                </div>
                <%@include file="sidespace.jsp" %>
            </div>
            <div class="footer"> FOOTER 80*1000 </div>
        </div>
    </body>
</html>
